package com.chw.shop.controller;

import com.chw.common.returnData.ReturnData;
import com.chw.shop.service.ISpecsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("specs")
public class SpecsController {
    @Autowired
    private ISpecsService iSpecsService;
   @RequestMapping("queryShopSpecs")
    public ReturnData queryShopSpecs(Integer  id){
       return ReturnData.success(iSpecsService.queryShopSpecs(id));
   }
}
